﻿<Window x:Class="WpfViewer.Window1"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Window1" Height="347" Width="900">
    <Grid>
        <Image Height="247" HorizontalAlignment="Left" Margin="0" Name="image1" Stretch="Fill" VerticalAlignment="Top" Width="800" Source="/WpfViewer;component/img_1.jpg">
            <Image.OpacityMask>
                <ImageBrush ImageSource="/WpfViewer;component/bin/Debug/mask_1.png" Stretch="Fill" TileMode="None" />
            </Image.OpacityMask>
        </Image>
        <Border BorderBrush="Silver" BorderThickness="1" Width="800" Height="247" HorizontalAlignment="Left" Name="border1" VerticalAlignment="Top" Background="Red">
            <Border.OpacityMask>
                <ImageBrush ImageSource="/WpfViewer;component/bin/Debug/mask_1.png" Stretch="Uniform" TileMode="None" />
            </Border.OpacityMask>
        </Border>
    </Grid>
</Window>
